package com.three.iot.api;

import com.github.pagehelper.Page;
import com.three.iot.commons.dto.SysResourceCondDto;
import com.three.iot.commons.dto.SysResourceCreateDto;
import com.three.iot.commons.dto.SysResourceModiDto;
import com.three.iot.commons.dto.SysResourceResultDto;
import com.three.iot.commons.enums.Result;
import com.three.iot.jdbc.model.SysResource;

import java.util.List;

/**
 * @author luiz
 * @Title: SysResourceService
 * @ProjectName iot
 * @Description: TODO
 * @date 2019-04-08 17:44
 */
public interface SysResourceService {
    Result<String> create(SysResourceCreateDto sysResourceCreateDto);

    Result<String> update(SysResourceModiDto sysResourceModiDto);

    Result<String> delete(String id);

    Result<SysResource> findById(String id);

    Result<List<SysResourceResultDto>> getListByCurrentUser(String currentUserNo);

    Result<List<SysResourceResultDto>> findReSourceLike(String condStr);

    Result<List<SysResourceResultDto>> listAll();

    Page<SysResource> listPage(SysResourceCondDto sysResourceCondDto);
}
